import { BaseService, Service } from '@/service/request';

@Service('app/step')
export default class extends BaseService {
    // 保存用户授权信息
    auth(data) {
        return this.request({
            url: '/auth',
            method: 'POST',
            data
        });
    }
	// 获取用户信息
	userInfo(params) {
	    return this.request({
	        url: '/userInfo',
	        method: 'GET',
	        params
	    });
	}
	// 获取签到列表
	signList(params) {
		return this.request({
		    url: '/signList',
		    method: 'GET',
		    params
		});
	}
	// 步数解密
	runData(params) {
		return this.request({
		    url: '/runData',
		    method: 'GET',
		    params
		});
	}
	// 兑换激励
	detail(params) {
		return this.request({
		    url: '/detail',
		    method: 'GET',
		    params
		});
	}
	// 兑换币
	exchangeB(params) {
		return this.request({
		    url: '/exchangeB',
		    method: 'GET',
		    params
		});
	}
	// 兑换礼品列表
	goodsList(params) {
		return this.request({
		    url: '/goodsList',
		    method: 'GET',
		    params
		});
	}
	// 金币兑换商品
	exchangeG(data) {
		return this.request({
			url: '/exchangeG',
			method: 'POST',
			data
		});
	}
	// 优选推荐购买
	optimizedGoodsBuy(data) {
		return this.request({
			url: '/optimizedGoodsBuy',
			method: 'POST',
			data
		});
	}
	// 优选商品点赞
	likeGoods(data) {
		return this.request({
			url: '/likeGoods',
			method: 'POST',
			data
		});
	}
	// 获取风控配置
	hdyxRiskSetting(params) {
		return this.request({
			url: '/hdyxRiskSetting',
			method: 'GET',
			params
		});
	}
	// 获取兑换商品分类
	giftClassify(params) {
		return this.request({
			url: '/giftClassify',
			method: 'GET',
			params
		});
	}
	// 统计用户PV、UV
	addVisitRecordZfb(params) {
		return this.request({
			url: '/addVisitRecordZfb',
			method: 'GET',
			params
		});
	}
	// 点击量统计
	clickStatistics(data) {
		return this.request({
			url: '/clickStatistics',
			method: 'POST',
			data
		});
	}
	// 分享得金币奖励
	shareAward(params) {
		return this.request({
			url: '/shareAward',
			method: 'GET',
			params
		});
	}
}
